import org.rsbot.script.methods.Bank;
import org.rsbot.script.methods.Camera;
import org.rsbot.script.methods.Objects;
import org.rsbot.script.wrappers.RSObject;

class VoluntaryThieve$Actions$11 extends VoluntaryThieve.Action
{
  boolean isCameraSet;

  VoluntaryThieve.Action.State perform()
  {
    RSObject localRSObject = VoluntaryThieve.access$7000(this.this$1.this$0).getNearest(new int[] { 52397 });
    if (localRSObject == null) return VoluntaryThieve.Action.State.FAILED;

    if (!localRSObject.isOnScreen()) {
      if (!this.isCameraSet) {
        VoluntaryThieve.access$7100(this.this$1.this$0).turnToObject(localRSObject);
        this.isCameraSet = true; } else {
        return VoluntaryThieve.Action.State.FAILED;
      }
    }
    return localRSObject.doAction("Use-quickly") ? VoluntaryThieve.Action.State.COMPLETED : VoluntaryThieve.Action.State.PROGRESSING;
  }

  VoluntaryThieve.Action.State finish()
  {
    return VoluntaryThieve.access$7200(this.this$1.this$0).isOpen() ? VoluntaryThieve.Action.State.COMPLETED : VoluntaryThieve.Action.State.PROGRESSING;
  }
}